package com.mall.bargain.mapper;

import com.mall.common.response.CommonResponse;
import com.mall.entity.TbCity;

import com.mall.entity.bargain.BgReceiveAddress;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
/**
 * created with IntelliJ IDEA
 *
 * @author: S
 * @date: 2021/07/19/14:35
 */
@Mapper
public interface ReceiveAddressMapper {

    /**
     * 添加收货地址
     * @param receiveAddress
     */
    void addAddress(BgReceiveAddress receiveAddress);


    /**
     * 三级联动
     * 三个下拉情况
     * @param id
     * @return
     */
    List<TbCity> findCity(Integer id);

    /**
     * 三级联动
     * 一个个下拉情框
     * @return
     */
    List<TbCity> findAllCity();

    List<BgReceiveAddress> findAddressByUid(Integer uid);

    /**
     * 查看订单的地址
     * @param id
     * @return
     */
    BgReceiveAddress orderAddress(Integer id);
}
